import { axios } from '@/utils/request'

export function select(parameter) {
  return axios({
    url: '/face/appVersion/select/' + parameter.id,
    method: 'get'
  })
}

export function selectPage(parameter) {
  return axios({
    url: '/face/appVersion/selectPage/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function del(parameter) {
  return axios({
    url: '/face/appVersion/delete/' + parameter,
    method: 'get'
  })
}

export function deleteFile(parameter) {
  return axios({
    url: '/common/upload/deleteFile?name='+parameter,
    method: 'get'
  })
}

export function save(parameter) {
  return axios({
    url: '/face/appVersion/save',
    method: 'post',
    data: parameter
  })
}
export function push(parameter) {
  return axios({
    url: '/face/appVersion/push/' + parameter,
    method: 'get'
  })
}
